package com.example.adminservice.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * <p>
 * 
 * </p>
 *
 * @author 软工2104-李家强-2100770248
 * @since 2023-09-28
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("chapter_audit")
@ApiModel(value = "ChapterAudit对象", description = "章节审核表的实体类")
public class ChapterAudit implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("审核记录id")
    @TableId("audit_id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long auditId;

    @ApiModelProperty("审核员id")
    @TableField("admin_id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long adminId;

    @ApiModelProperty("书籍id")
    @TableField("chapter_id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long chapterId;

    @ApiModelProperty("审核时间")
    @TableField("audit_date")
    private LocalDateTime auditDate;

    @ApiModelProperty("审核意见")
    @TableField("notes")
    private String notes;

    @ApiModelProperty("审核结果: true通过, false未通过")
    @TableField("status")
    private Boolean status;


}
